Ok, checking...
Meanwhile, on conceptual level,
perl script calls cfm page(lets say via LWP module) with parameters, does process. Can the click of the button (response or checkbox checked or exit or any kind of form processing) can be send back to perl script that calls the cfm page so that...
Hi all,
Is it possible to call CFM page with parameters (perl variables that have values) via perl script?
Hope that made sense. If yes, what docs should I read?
Thanks
1. First you will need to quote the file name so your shell knows that you are not trying to pipe test.pl's output:
./test.pl "fileOne|"
For this, it still says
Can't exec "fileOne": No such file or directory at ./test.pl line 8.
Thanks
Hello all,
i am trying to read file that has pipe in the end of file name.
fileOne| -> it is a data file
./test fileOne| doesn't work as it doesn't read the |
I tried to escape it with backslash
./test fileOne\| but this doesn't work also
$opF = $ARGV[0];
open FILE, "$opF" or die...
also,thanks to all who made suggestions. best way to learn to look at multiple different ways of doing same thing. just that i am new and it takes me longer to figure out what is better way....
thanks again!!
Thank you both. Works very well. THanks for being patient with me.
Just one quick question...The logic wouldn't work if data was? What would I have to change to take that into consideration? I am thinking ($key,$val)=split(/\|/); would need another variable but comparison logic will have to...
My goal is to compare two files and difference between records. file 1 is master and file 2 is to update the records. file 2 suggests that record is updated (record needs to be updated from master), removed (record is not needed hence not in file 2) or new record is added which means record...
I am using simple script to check difference in two files as bellow
#!/usr/bin/perl
open a, "$ARGV[0]";
open b, "$ARGV[1]";
local $/; my @a = split /\n/, <a>;
my @b = split /\n/, <b>;
my %b = map { $_ => 1 } @b;
# Make hash of B
my @res = grep { !defined $b{$_} } @a;
# Everything in A not in B...
hello,
i needed path forward in regards to how to parse through data in variable from cfexecute.
after cfexecute is successful, my variable has following data when i do cfdump or cfoutput:
fruits
apple banana
peach orange
veg
beans eggplant
drinks
coke pepsi
drinks
fanta
i am having trouble...
Hello,
I am using coldfusion form with username/password. using post/get how do i pass to the perl script where i can print the values set in coldfusion form? Any example or link or any pointer will be helpful...i tried google but couldn't find anything simple.
thanks,
ladprog
I am going through documentation of expect and I came across somethings I do not understand if someone can please help me understand I will appreicate it.
In the below code what does shift signify, i do not understand what it is doing.
$exp->expect($timeout,
[ qr/username: /i...
I gave that a try as well listFindNoCase and listFind
<option value = "#name#" <listFindNoCase(selName, name)>selected="selected"</cfif> >
#name#
</option>
but it still returns the 1st in the list
ie. if names list: (bp ap sp tp)
and if i select bp & sp, it returns bp only when...
Hi all,
I am creating a list box where i can select multiple values
but no matter what i do i only get back one value. I can select two but it ends up returning the first value selected. what may i be doing wrong? Thanks,
<select id="selName" multiple="multiple" >
<cfquery name="getName"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.